//
//  AppMacro.h
//
//  Created by 杨 锐 on 14-5-21.
//  Copyright (c) 2014年 Rui. All rights reserved.
//

//沙盒路径
#define kPATH_OF_APP_HOME       NSHomeDirectory()
#define kPATH_OF_TEMP           NSTemporaryDirectory()
#define kPATH_OF_DOCUMENT       [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]

//iOS7系统
#define kiOS7                  [[UIDevice currentDevice].systemVersion doubleValue] >= 7.0

//iOS8系统
#define kiOS8                  [[UIDevice currentDevice].systemVersion doubleValue] >= 8.0

//iOS9系统
#define kiOS9                  [[UIDevice currentDevice].systemVersion doubleValue] >= 9.0

//3.5寸屏 是返回1 否则返回0
#define k35Inch                ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)

//4寸屏   是返回1 否则返回0
#define k4Inch                 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)

//4.7寸屏 是返回1 否则返回0
#define k47Inch                ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(750, 1334), [[UIScreen mainScreen] currentMode].size) : NO)

//5.5寸屏 是返回1 否则返回0
#define k55Inch                ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? (CGSizeEqualToSize(CGSizeMake(1125, 2001), [[UIScreen mainScreen] currentMode].size) || CGSizeEqualToSize(CGSizeMake(1242, 2208), [[UIScreen mainScreen] currentMode].size)) : NO)

//屏幕宽度
#define kUIScreenWidth         [[UIScreen mainScreen] bounds].size.width

//屏幕高度
#define kUIScreenHeight        [[UIScreen mainScreen] bounds].size.height

//电池状态栏高度
#define kStateHeight           20.f

//UINavigation高度
#define kNavHeight             44.f

//电池状态+UINavigation高度
#define kStateNavHeight        kStateHeight+kNavHeight

//选择器以及英文键盘高度
#define kUIPickerHeight        216.f

//中文键盘高度
#define kChineseKeyboardHeight 252.f

//是否是IOS7系统
#define IsIOS7                  [[UIDevice currentDevice].systemVersion doubleValue] >= 7.0

//app包名
#define kBundleName            [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"]

//version发布版本号
#define kVersionShort          [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]


